changed database from sql to postregsql