Remove unnecessary part of function
still not working SQLite