modified method so that app fills db tables on first run