removed db2 after demonstration + reworked db1.c