Custom Behavior when Adding New Custom Post Type in Dashboard

Add a meta box to your custom post type edit screen to contain your markup. Check the $pagenow global to only show it on post.php, not post-new.php, and check $current_user global for administrator role to exclude other user roles.

Also, if you aren’t familiar, check out the $wpdb class for your queries, and read up on using AJAX in WordPress.

EDIT use get_current_screen and current_user_can rather than dirty, dirty globals, as @TheDeadMedic suggested in comment below.