first php class to fetch and insert records for students