Time database actually working