ensure db is created