Category and PictureBean fixed with db connection