fix devise database issues