Better file handling with export()
Bugfix: Now capable of handling db if it doesn't end w/ a trailing newline