[fix] bug with db