debug db save
Fix DB connection issues: open at startup.
clean db connection