sqlalchemy: use a list rather than if/elif to convert type in queries
sqlalchemy: use a list rather than if/elif to convert type in queries

Change-Id: I4d7ab97ddd383c8c18fb4c6cba1b531f37af36c4

leandroreox/gnocchi,sileht/gnocchi,sileht/gnocchi,leandroreox/gnocchi,gnocchixyz/gnocchi,gnocchixyz/gnocchi