Connected units to database