lots of script restructure
Added script for tag autocompletion, began work on serverside database