Add inserter status thread
Remove queries to media tables