checked the models and put postres info in database file