Extend database API with two more methods