Added lua, added db connection to PlayerManager

I've also revised the startup process a bit.