Still working on getting database to write again