Created a method to check if a database is created in Android.