Fix db click checking

Fixed the check for enabled double-click, with the correct number of parameters on getAttribute as pointed out by @mlimper and @yjung