Core features added

- Added error handler
- Some changes in database
- Settings are now loaded from the database into the hive