added table time in db,
changed all forms to normal code,
small bugs fixed