- merge common method in DB classes