add util class for database