moved php to separate file
ajax call for insert data