Add database selector

Fixed: id with dots and other illegal characters for jquery