database implement