add FROM and use uppercase for better readability
Merge pull request #2 from owncloud/sql_from_cleanup

add FROM and use uppercase for better readability