mysql table time set to smallint(4) and added index