Added separation of SQL
 * Created interface HasSQL
 * Implemented HasSQL in GuestbookController