started work on reading files from db