Implement logger, begin debating about SQL

Signed-off-by: Robert Xu <robxu9@gmail.com>