removed redundant SQL statement