corrected sql syntax & added DB config info