Created Promisified and functional version of native DB functions