Populate sqldatabase upon opening