Study of SQL and NoSQL datastores