Fix downloading SQLite database from all users

Simple security fix
I think you can delete this function. If code is unused => trash ;-)