added a gem and modified some db and model stuff
db and model stuff