initlize from db