remove unused checkPostgres function