Db class, string, time and validations helpers fixed