Javascript Array Not Null Meaning Sqlite Commands