Fix SQL Crash and Clean up Punch Clock Activity