set correct ownership of db