first attempt at using postgresql