creates local db file