Imporved sqlite stuff, reworked battleground