Fix disconnect log and sql timestamps

event.player methods are not generally available in the disconnect event. Work-around by adding information to the playersOnline global.
Replace all instances of os.time() SQL concats with sqlite native function.