remove c3p0, fix errors