Used PostgreSQL as database