refactor code to include prepared statements servicecallform