A lot of fixes and tweaks

W.I.P. commands, network fixes, databases...