Fixed things dealing with initializing databases and pulling things out of the database