basics of bean wiring and SQL