updated SQL readme and fixed BuildDatabase