implemented a part of DB;
implemented dialog for pick time;