refractor db