try catch for site details insert