Added postgre database and some corrections