Mostly connected backend to frontend. Note: Mongo does not store store functions