Finished converting to db