Changed expiration scheme to use time.* goodies instead

Cleaned up insert queries to use TTL=0 in case of persistent object