added time, worked on database'