database workaround