Generates database entries for mongodb and mysql