added Bookself, wrote PG user API