Fix bugs in converters and clean names

Fixed some bugs in folder_to_sqlite and records_to_sqlite. Also removed
unnecessary 'DB' from all the names involving sqlite files.