FIX: get_credentials
adopting Pg gem