finished Database plugin