reverted connection string and fixed edit form initialization