Ajaxtodb fixed selection fixes