Small cheat sheet to deal with pgsql