first backend + sql structure

first initial functionality of the backend & mysql structure changes