Updated dummyDatabase and equipmentjs

I updated dummyDatabase to comply with new function params for sql and
I made some minor changes to equipments.js