Removes unnecessary database data from Repository table