switch to datetime, cleanup code
add maintenance command, cleanup code
add bash scripts to trigger commands