Fixed javascript directory matching
Fixed db.sqlite3 error