initial code and DB