checks whats in database