Error while connecting database from aws postgresql 10.1

Looks like to need to migrate the database.