Fix for loading local db