Doc: API documentation chapter renamed
Fix wrong keyword argument
Optimize number of database queries