adapted to postgresql
Added gitignore