Added DataBaseProvider test, fixed small bugs, added generator class