adds sql attempt