added a method to create db if not exists