Fix for getting gestures from db