Data Layer continued, fixes, added MS SQL Server scripts.