restructured and splitted the code in separate files, colourized the output of bin and make
merged files again for simplicity, added timestamps to debug messages, added update of sqlite database