Created PostgresAdapter. Added some comments