Finished implementing PostgreSQL database.