Tidying up starmap generation
Parameterised to allow it to generate smaller maps
Start to add code to update database