moved DB classes