added sql db and handling, but insert doesnt work atm