checking for database existence in our constructor