changed everything to prepared statments in #management