comment out cross origin stuff
close db before reload