Move database layer into a separate module.
Clean-ups
Remove check for PLATFORM_FRAMEWORK
Add module installer.
Fix URI scheme/stream-wrapper pre-registration.