changed db to fix file name length for images