LogiQL (A Query Language for Smart Databases)