adding in local database but it doesn't work