- Corrected incorrect td field in contracts.html
 - Functionalized db creation and records population and added to main routine.