Make a deepcopy of params before generating query

Fix #10
Implement lazy functions to resolve in _as

Fix #11
Add MySQL db settings stub