[database] remove deprecated code (REST API) and useless requires