on Windows

C:\Users\%USERNAME%\AppData\Local\Apple Computer\Safari\Databases

on Mac

/Users/[username]/Library/Safari/Databases/http_[URL of the site creating the DB]_0
/Users/[username]/Library/Safari/Databases/file__0

Name of the database is something like 0000000000000002.db