Prepare db work
Add basic database connection resources in framework.
Add a thread to confirm every db connections periodicly.
Add an test sql option to auto-confirm.