If you use docker then check Problems setting sqlite connection with nodejs and local docker. Otherwise check if both the direct database connection and server connect database connection point to the same database file, the error happens when they point to different files, you created the table in one database and the other is empty.