flex set up, still using mssql
minor changes to make it compliant with our project