Fixed bugs on ORMlite repository and implemented partially tests involving alarms