fix zero db startup
set last db