Config defines + Database connect

- Connect/Disconnect db.
- Config defines.