Remote database selection. Fixed default ordering. Added active class to selected elements.