Added orderBy() and limit() methods; allow where to be array or string
Made where statements to strings since an array is no longer needed
Converted logsAPI to new database object