added database and wrote to it
added database and wrote to it