Added more methods in database