Database: fixes, typos in Sqlsrv