structure changes and updates of external libraries
fixed some minor bugs
first db-access, restructuring again