wired up to db