added database setup method