Fix version comparision; close cursors

Close open cursors when finished in database methods
ServerVersion: Compare the whole version string
CardsFragment: Fix NPE in toggleAnimations

Change-Id: Iaf1fec1eee154ff9982561fd6da7feca4e60927e