Finshed all the backend!

Next step is to make it usable