use timestamp for timestamp lookup in database