Added DB and made some changes to networking

Added create and shutdown scripts, stubbed a lot of stuff out