Have you considered the DB's own export tool? Check the DB specific documentation for details. In for example MySQL you can use the SELECT INTO OUTFILE clause: http://dev.mysql.com/doc/refman/5.1/en/select.html
Don't get me started about those stupid light bulbs.