Added encoding API
Fixed database specifying
Added options for API calls