create db after deviceready