fix easy-db…ugliest code ever!