Fixed mysql stuff so it works with new system
Start of session