* implementing some features in the database API