fix database for lan access