sql structure added and some login preparations