delete local database

This fixes #1145 and #1142