fixes database location