Added time_frame_check function

Checks db file for last time certain types of backups were run and will
run that backup if it has been longer.