populating the db on the fly