create abstact connection class and mysql, pgsql implementations