integrated all db stuff into blog page