Add API module
Fix connection to redis