Added database code stubs, modified networking protocol slightly, misc code tweaks, added todos