Started rebuilding backend scripts

Non-useable version.