check if database has been created