Added logic to restart with correct interval remaining in the event of server restart.
Changed small bug in the get latest record method. SQL script was hardcoded to a specific db and tabled, changed it to utilize table and db variables set by config file.