Install libpq-dev
Set up data directory if it doesn't exist