changing database to postgre