inialize with database done