Updated the SQL and DBaccess files