added database creation with test