Theoretical approaches to schema and query mapping for (No-)SQL databases