SQL connection and first insert