Databases stable with new front-end

This is to backup the stable branch before we split the server code between a Portal Server ( which will act as the head for the entire test-bed) and the Gateway Raspberry Pi for a single cluster.