Fix database issues by changing pg version