Determine all four-digit numbers $\overline{abcd}$ that are perfect squares and satisfy the equation:

$$\overline{ab} = 3 \cdot \overline{cd} + 1.$$

Let's think step by step and output the final answer within \boxed{}.
user