Added DB functions file