update db structure and optimize model
added image thumbnail generator