Bridging the Gap Between SQL and NoSQL