printer contoller and some db changes