Added functionality for update records(in first version)
TODO: implement save null image to db if image file not specified
TODO: assign image from db in private variable for save them to db soon