Update blog.sql

Added foreign constraint for posts table and rename name to filename for post table.