Changing database over to pg