changing database to pastgresql