Upgraded database from squlite to postgress.