Implemented Postgres storage