Discover models from the database