entry to form
move sql server related code to SqlServer