UI tweaks
Fix database write routine
Unix times