Checks for first time and builds db async