Added ability to convert files for database

Added convertFileToBytes method and edited database code to work with
it.