init database when start server