Added a php function to auto-populate the DB