Add async lib and extract functions to make specific db calls