Initial rewrite of database code (all async) - indx loads