modified resource DB to use back end database
picture upload does not work yet