fix of migration to git errors and new function in GET_HABITS URI