created database for on device ready