Finished postgresql exercise