Checks if database is populated yet