Add relations attribute for prepare()
Use mapper to determine columns and relations attributes