class conn mysql postgres