Added voting API.
Fixed exports in dbhelper