Move the pg connection string to the env
Use the visibility plugin
Include withRelated to reach the model's query builder