Separated SQL from php code. Created new interface and implemented it in CCGuesbook.php