Modified readme and added database code