Remove unused slots/signals, add sorting, initialize database