Allow passwordless database configuration.
Remove needless include.
Add database write functionality.