Implement Database in plugins