New config
Added API module
Several database corrections