Adding time inserted to DB query and test