postgresql connection and category model created