Fixed SQL Query for scaning for ships