changed to use local database

needs testing before deployment