localtime bugfix and dbback.sh bugfix