creating local db