fix database name setting