Started using sqlite and odb and remade the main program and the daemon