lib: bugfixes

* get_pkmn_of_type: accounted for possibility of using "Any" instead of "None" for type2
* sqlitecpp: Fixed error message messed up by removing boost::format