Some corrections dirty corrections around and a tiny sql file to create pharao user on postgresql.