Use settings for storing database handler. Raise exception if db handler is not initialized when calling run.
Check if argument is a valid integer if not then return 404. Add helper for that.