ML: database basic integration