Added more methods for db