Fixed database char encoding. Added minimal size for photo capture