[55] add time parametr into db;remove unused part; fix logical error;