Talking to the database directly can be a little difficult as the database is running inside a docker container and that is inside a VM so you need to forward ports twice.
Below is the schema
There is a work and work_alias table that should have the information you want.