adds check if database has anything in it