database Class