Added ability to insert runs into database