Clean opencode
Fix core module to always use the 'db' component to connect to database
Prepare to merge back changes in core to master
Remove opencode module, master only contain 4 essentials module