More DB functions added