configuring local database