using postgresql as database

closes #28