attempt at async db