Added formatTimestamp helper to Database