Added more DB functions