recreated database and fixed statements