change attachment module db schema