Refactored creation of database rows in Install class.